<?php
session_start();

require_once('db/DBConnection5.Class.php');
define('SERVER_TYPE', "LOCAL");
if (SERVER_TYPE == "LOCAL") {
    $SERVER_ROOT_FOLDER = "wintronic";
    $ADMIN_BASE_HREF = "http://" . $_SERVER['HTTP_HOST'] . "/" . $SERVER_ROOT_FOLDER . "/admin/";
    $SERVER = "localhost";
    $DBASE = "wintronic";
    $USERNAME = "root";
    $PASSWORD = "";
} else {
    $SERVER_ROOT_FOLDER = "admin";
    $ADMIN_BASE_HREF = "http://" . $_SERVER['SERVER_NAME'] . "/" . $SERVER_ROOT_FOLDER . "/";
    $SERVER = "localhost";
    $DBASE = "wintr5tz_wintronic";
    $USERNAME = "wintr5tz_wintron";
    $PASSWORD = "w!ntr@n!c#123";
}
$DBOBJ = new myclass($SERVER, $DBASE, $USERNAME, $PASSWORD);

$project_selectConfig = "select * from preference";
$PROJECT_CONFIG_ARRAY = $DBOBJ->select($project_selectConfig);
$PROJECT_CONFIG_ARRAY = $PROJECT_CONFIG_ARRAY['0'];

define("PAGING_LIMIT", $PROJECT_CONFIG_ARRAY['paging_limit']);
define('SESSION_NAME', 'wintronic');

$companyName = $PROJECT_CONFIG_ARRAY['company_name'];
$companyUrl = $PROJECT_CONFIG_ARRAY['company_url'];

$project_selectAdmin = "select * from admin";
$PROJECT_ADMIN_ARRAY = $DBOBJ->select($project_selectAdmin);
$PROJECT_ADMIN_ARRAY = $PROJECT_ADMIN_ARRAY['0'];
$admin_email = $PROJECT_ADMIN_ARRAY['email'];